#!/bin/sh
if [ $# -lt 2 ]
then
    echo "$0 IP FILENAME"
    exit 1
fi
IP=$1
FILENAME=$2
N=`echo $IP |grep -o '\.' |wc -l`
if [ $N -eq 3 ]
then
    scp  $2 root@$IP:/usr/local/$3
else
    scp  $2 root@10.1.$IP:/usr/local/$3
fi
